#!/usr/bin/gnuplot

#set terminal post eps 24
set terminal post eps color 24 

# Task View: Graph 2
# Map task data flow
set output "dataflow.eps"
set xlabel "Machine ID"
#set ylabel "Task ID"
#set key inside bottom right
set noytics
set yrange [0:8]
set label "map task no.18" at 5,4

plot "mapin.dat" using 1:(7):($2-$1):(-3) with vectors lt 1 linecolor 1 title "map-input", \
	"shuffle.dat" using 1:(4):($2-$1):(-3) with vectors lt 1 linecolor 2 title "map-output", \
	"shuffle.dat" using 1:(4) with points notitle pt 7 lc rgb "black", \
	"shuffle.dat" using 2:(1):3 with points lt 1 pt 7 linecolor 3 ps variable notitle, \
	"mapin.dat" using 1:(7):3 with points lt 1 pt 7 linecolor 3 ps variable title "bytes"
